package com.jiangbo.Mmscall;

import com.jiangbo.Mmscall.R;

import pub.ConfigFile;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Button;
import android.widget.TextView;

public class ChangButtonReceiver extends BroadcastReceiver {
	private Activity activity;
	
	public ChangButtonReceiver(Activity activity) { 
		  this.activity=activity;
	}  
	
	@Override
	public void onReceive(Context context, Intent intent) {
		// TODO Auto-generated method stub
		//System.out.println("user_enble=" +ConfigFile.User_Eenble );
		if (intent.getAction().equals(ConfigFile.MY_CHANG_BUTTON) ) {
			Button button = (Button)activity.findViewById(R.id.send);
			//button.setEnabled(ConfigFile.User_Eenble);
			//System.out.println("user_enble=" +ConfigFile.User_Eenble );
		}
	}


}
